package com.xxxx.seckill.controller;


import com.xxxx.seckill.pojo.dto.OrderDto;
import com.xxxx.seckill.service.IOrderService;
import com.xxxx.seckill.vo.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhoubin
 * @since 2022-08-20
 */
@Controller
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private IOrderService iOrderService;

    @GetMapping("/detail")
    @ResponseBody
    public RespBean orderDetial(String orderId){
        RespBean respBean =  iOrderService.getOrderDetail(orderId);
        return RespBean.success(respBean);
    }


}
